package com.celesea.auth.dept.v1.controller.resource;

import com.celesea.auth.dept.vo.DeptTreeVo;
import org.springframework.beans.BeanUtils;

import java.util.List;

/**
 * @author JackYuan
 * @create 2017-10-28 21:18
 */
public class DeptTreeResource {

    private String id;
    private String name;
    private String company;
    private Byte companyFlag;
    private Integer userCount;
    private Byte leaf;
    private List<DeptTreeResource> children;

    public DeptTreeResource(DeptTreeVo dept) {
        BeanUtils.copyProperties(dept, this);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getUserCount() {
        return userCount;
    }

    public void setUserCount(Integer userCount) {
        this.userCount = userCount;
    }

    public Byte getLeaf() {
        return leaf;
    }

    public void setLeaf(Byte leaf) {
        this.leaf = leaf;
    }

    public List<DeptTreeResource> getChildren() {
        return children;
    }

    public void setChildren(List<DeptTreeResource> children) {
        this.children = children;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public Byte getCompanyFlag() {
        return companyFlag;
    }

    public void setCompanyFlag(Byte companyFlag) {
        this.companyFlag = companyFlag;
    }
}
